class AirConditioner:
    __brand = None
    __price = None

    def set_value(self):
        self.__brand = input("请输入空调品牌:")
        self.__price = input("请输入空调价格:")

    def get_value(self):
        print(f"空调品牌为{self.__brand}")
        print(f"空调价格为{self.__price}")

    def boot(self):
        print(f"{self.__brand}空调开机了....")
        return None

    def shutdown(self, number: int):
        print(f"{self.__brand}空调将在{number}分钟后自动关机")
        return None


class Test:
    brand = None
    price = None

    def name(self):
        self.brand = input("请给空调命名:")
        self.price = input("请输入金额:")
        print(f"空调品牌为{self.brand}")
        print(f"空调价格为{self.price}")


class Phone:
    __name = "悟空"
    __gender = "男"
    __age = 23
    __charge = 100
    __brand = "小米pro13"
    __battery = "5000mA"
    __size = "16.9"
    __time = "72h"
    __point = 0

    def send_message(self, message: str):
        print(f"发送人:{self.__name}")
        print(f"发送内容:{message}")

    def call_phone(self, phone_long: int, times: int):
        if 10000000000 < phone_long < 99999999999:
            if self.__charge >= 1:
                pass
            else:
                print("话费不足1元，请及时充值!")
        else:
            print("您所拨打的手机号为空，sorry.....")
        if times <= 10:
            self.__charge = self.__charge - times
            self.__point = self.__point + times*15
        elif 10 < times <= 20:
            self.__charge = self.__charge - times*0.8
            self.__point = self.__point + times * 39
        else:
            self.__charge = self.__charge - times*0.65
            self.__point = self.__point + times * 48
        print(f"您的话费余额为{self.__charge}元")
        print(f"您的积分为{self.__point}")


class Student:
    number = "001"
    name = "悟空"
    gender = "男"
    height = "174"
    weight = "174"
    grade = "98"
    local = "河南省信阳市"
    phone = "534588133"

    def study(self, time: float):
        print(f"{self.name}同学,学习时间为{time}小时。")

    def game(self, game_name: str):
        print(f"{self.name}同学,在玩{game_name}")

    def code(self, number: int):
        print(f"{self.name}同学,写了{number}行代码 ")

    def sum(self, *number):
        self.name = []
        sums = 0
        for i in number:
            sums += i
        return sums


class Car:
    model = None
    circle = None
    color = None
    weight = None
    size = None

    def run(self, function: str):
        self.model = input("请输入车的型号:")
        self.circle = input("请输入车的轮数:")
        self.color = input("请输入车的颜色:")
        self.weight = input("请输入车的重量:")
        self.size = input("请输入车的油箱大小:")
        print(f"{self.model}是一款{function}，")


class Computer:
    model = "惠普"
    time = "24小时"
    color = "黑色"
    weight = "1kg"
    cpu = "8g"
    memory_size = "16.5"
    hard_disk_size = "512g"

    def play_game(self, name: str):
        print(f"{self.model}电脑打{name}很爽!")

    def office(self):
        print(f"{self.model}电脑办公很舒服!")


class Monkey:
    style = "长臂猿"
    gender = "男"
    color = "黑色"
    weight = "70kg"

    def make_fire(self, materials: str):
        print(f"{self.style}使用{materials}造火.")

    def study(self, *thing: str):
        print(f"{self.style}学习", end="")
        for i in thing:
            print(i)
        print()


if __name__ == '__main__':
    ac = AirConditioner()
    ac.set_value()
    ac.get_value()
    ac.boot()
    ac.shutdown(int(input("请输入关机时间")))
    t = Test()
    t.name()
    phone = Phone()
    phone.call_phone(18374253542, 5)
    phone.send_message("你好悟空！")
